package pers.cj.pdos.mapper;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.InGoodsOrderGoods;
import pers.cj.pdos.entity.SaleOrderGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 销售订单中的商品，1对多 Mapper 接口
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface SaleOrderGoodsMapper extends BaseMapper<SaleOrderGoods> {

    void insertBatch(@Param("list") List<SaleOrderGoods> list);

    long countWaitNumber(@Param("saleOrderId") String saleOrderId);

    long countNumber(@Param("saleOrderId")String saleOrderId);
}
